solve (n 3)^2